﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _05原型设计模式
{
    public class Teacher:ICloneable
    {
        public Teacher(string name)
        {
            Name=name;
        }
        public string Name { get; }

        public object Clone()
        {
           return this.MemberwiseClone();   
        }
    }
}
